cmake_minimum_required(VERSION 3.16)
#注意，设置新的project会覆盖 PROJECT_SOURCE_DIR
project(uhd_cpp VERSION 1.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
	include_directories($ENV{UHD_PKG_PATH}/include)
	link_directories($ENV{UHD_PKG_PATH}/lib)
endif()


#############Target======================

add_executable(uhd_io
	uhd_io.cpp
)
target_link_libraries(uhd_io
	uhd
)

